From 24af1348c7b0215d1c827a932f9b3640e41bf6b7 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 14 Jan 2010 20:31:16 +0900 Subject: [PATCH] Fix handling of euc-xx coding systems. --- src/ChangeLog | 5 +++++ src/coding.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5f52168676b..3df77ab07d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-14 Kenichi Handa + + * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding + systems. + 2010-01-14 Kenichi Handa Make auto-composition work on all buffers even if they are diff --git a/src/coding.c b/src/coding.c index 6b63d1f1a42..b3a51eb0c4c 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3239,9 +3239,13 @@ detect_coding_iso_2022 (coding, detect_info) int i = 1; while (src < src_end) { + src_base = src; ONE_MORE_BYTE (c); if (c < 0xA0) - break; + { + src = src_base; + break; + } i++; } -- 2.30.2